-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[red-knot] Support assert_type
#15194
base: main
Are you sure you want to change the base?
Conversation
|
This is largely a proof-of-concept. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for working on this. I added a few initial review comments.
crates/red_knot_python_semantic/resources/mdtest/directives/assert_type.md
Outdated
Show resolved
Hide resolved
crates/red_knot_python_semantic/resources/mdtest/directives/assert_type.md
Outdated
Show resolved
Hide resolved
crates/red_knot_python_semantic/resources/mdtest/directives/assert_type.md
Show resolved
Hide resolved
crates/red_knot_python_semantic/resources/mdtest/directives/assert_type.md
Show resolved
Hide resolved
crates/red_knot_python_semantic/resources/mdtest/directives/assert_type.md
Outdated
Show resolved
Hide resolved
3234f80
to
08fd1a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, thank you for working on it! I think if we rebase on top of #15103 we can address some of the limitations and get it ready to land.
08fd1a5
to
7bb9545
Compare
a90a8fd
to
bf4957f
Compare
crates/red_knot_python_semantic/resources/mdtest/directives/assert_type.md
Outdated
Show resolved
Hide resolved
d6fa64f
to
b5d8b8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thank you! A few nits here and there, but basically this looks just right.
crates/red_knot_python_semantic/resources/mdtest/directives/assert_type.md
Outdated
Show resolved
Hide resolved
crates/red_knot_python_semantic/resources/mdtest/directives/assert_type.md
Outdated
Show resolved
Hide resolved
crates/red_knot_python_semantic/resources/mdtest/directives/assert_type.md
Show resolved
Hide resolved
crates/red_knot_python_semantic/resources/mdtest/directives/assert_type.md
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to merge/rebase and fix some compilation failures now that #15386 has landed :-)
5d6ab96
to
13ace5b
Compare
Summary
See #15103.
Test Plan
Markdown tests and unit tests.